package logic.courseSelect_logic;

import java.util.List;

import po.SelectRecordPO;
import po.StuCouScoRecPO;
import datasv.courseSelect_datasv.CourseSelectDatasv;
import datasv.datafactorysv.CourseSelectDatasvFactory;

public class CourseArranger {

	private String courseID;
	private Algorithm algo;
	private List<SelectRecordPO> selectList;
	private List<StuCouScoRecPO> result;
	public CourseArranger(String courseID,Algorithm algo){
		this.courseID = courseID;
		CourseSelectDatasv courseSD = new CourseSelectDatasvFactory().create();
		selectList = courseSD.getSelectRecord(courseID);
		this.algo = algo;
		result = algo.arrange(selectList);
	}
	public Algorithm getAlgo() {
		return algo;
	}
	public void setAlgo(Algorithm algo) {
		this.algo = algo;
	}
	public List<StuCouScoRecPO> getResult() {
		return result;
	}
}
